#ifndef FORMPLAY_H
#define FORMPLAY_H

#include <QWidget>
#include "dcsplayer/dcsplayer.h"
#include "dcsdb/dcsdboperator.h"

namespace Ui
{
    class FormPlay;
}

class FormPlay : public QWidget
{
Q_OBJECT

public:
    explicit FormPlay(QWidget *parent = 0);

    ~FormPlay();

private slots:

    void on_pushButtonPlay_clicked();

    void on_pushButtonStop_clicked();

    void on_pushButtonPrev_clicked();

    void on_pushButtonNext_clicked();

    void on_pushButtonReturn_clicked();

    void on_playStateChanged(quint8 state);

    void on_playVideoPrepared(quint8 index);

    void on_RefreshPlayProgress();

private:
    Ui::FormPlay *ui;
    DCSPlayer *mPlayer;
    DCSDbOperator *mDbopt;
    QTimer *mTimer;
};

#endif // FORMPLAY_H
